{config_load file="global.conf"}
{config_load file="_TraderForecasts.conf" section="`$lang`"}
{* ========================================================== *}
{assign var="fstr" value="%0.`$Forecast.decimal`f"}
{assign var="div_v" value="divTraderOpenTable_Row_`$Forecast.ForecastID`_value"}
{assign var="div_i" value="divTraderOpenTable_Row_`$Forecast.ForecastID`_input"}
{assign var="inp" value="inpTraderOpenTable_Row_`$Forecast.ForecastID`_"}
{* ========================================================== *}

    <td> &nbsp;
        <div id="{$div_v}_signalid">
            {$Forecast.SignalID}
        </div>

        <div id="{$div_i}_forecastid">
            <input type="hidden" name="{$inp}_forecastid" value="{$Forecast.ForecastID}">
        </div>
    </td>

    <td> &nbsp;
        <div id="{$div_v}_opentimef">
            <nobr>&nbsp;{$Forecast.OpenTimeF}</nobr>
        </div>
    </td>

    <td> &nbsp;
        <div id="{$div_v}_pair">
            {$Forecast.Pair}
        </div>
    </td>

    <td> &nbsp;
        <div id="{$div_v}_side">
            &nbsp;{if 0==$Forecast.Side}{#_TraderForecasts__labelBuy#}{*BUY*}{else}{#_TraderForecasts__labelSell#}{*SELL*}{/if}
        </div>
    </td>

    <td	  align="center"> &nbsp;
        <div id="{$div_v}_size">
            {$Forecast.Size|string_format:"%d"}
        </div>
    </td>
    <td	  align="center"> &nbsp;
        <div id="{$div_i}_size">
            <input type="text" name="{$inp}_size" value="{$Forecast.Size}" alt="decimal"  emsg="Lots cant' be empty"  size ="5">
        </div>
    </td>

    <td	  align="center"> &nbsp;
        <div id="{$div_i}_close">
            <a onClick="xajax_closeTraderOpen({$Forecast.ForecastID});return false;">{#_TraderForecasts__labelClose#}{*Close*}</a>
        </div>
    </td>

    <td> &nbsp;
        <div id="{$div_v}_beginprice">
            {$Forecast.BeginPrice|string_format:"`$fstr`"}
        </div>
    </td>

    <td> &nbsp;
        <div id="{$div_v}_stopprice">
            {$Forecast.StopPrice|string_format:"`$fstr`"}
        </div>
    </td>
    <td	  align="center"> &nbsp;
        <div id="{$div_i}_stopprice">
            <input type="text" name="{$inp}_stopprice" value="{$Forecast.StopPrice}" alt="number"  emsg="StopPrice cant' be empty"  size ="5">
        </div>
    </td>

    <td> &nbsp;
        <div id="{$div_v}_endprice">
            {$Forecast.EndPrice|string_format:"`$fstr`"}
        </div>
    </td>
    <td	  align="center"> &nbsp;
        <div id="{$div_i}_endprice">
            <input type="text" name="{$inp}_endprice" value="{$Forecast.EndPrice}" alt="number"  emsg="EndPrice is not number"  size ="10">
        </div>
    </td>

    <td> &nbsp;
        <div id="{$div_i}_update">
            <input {*class="button"*} type="button"  name="frmUpdate_submit" value="{#_TraderForecasts__labelUpdate#}"{*Update*} onClick="xajax_updateTraderOpen(xajax.getFormValues('frmTraderRowUpdate',1,'{$inp}'));return false;">
        </div>
    </td>

    <td	  align="right"> &nbsp;
        <div id="{$div_v}_profit">
            {include file="trader/_TraderForecasts_Profit.tpl" Active=`$itemForecast.FlagActive` Profit=`$Forecast.Profit`}
        </div>
    </td>

{* ========================================================== *}
